<?php
defined('BASEPATH') OR exit('No direct script access allowed');

$config['super_admin'] = [
    '18736505501'
];
// 注意：下面的权限代码不能为-1,pri_id按照以下规则，100,200..防止后面功能多了，出现重复
$config['page_menu'] = [
    [
        'title'    => '首页',
        'icon'     => 'menu-icon fa fa-home',
        'is_first' => true,
        'position' => 'home',
        'site_url' => 'home',
        'pri_id'   => 100
    ],
    /***************************订单管理****************************/
    [
        'title'        => '订单系统',
        'icon'         => 'menu-icon fa fa-laptop',
        'is_first'     => false,
        'pri_id'       => 1800,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => '订餐订单',
                'position'      => 'order_canteen',
                'site_url'      => 'order/order_canteen',
                'pri_id'        => 1810,
                'child_actions' => [
                    1811 => '分配订单',
                ]
            ],
            [
                'title'         => '洗车订单',
                'position'      => 'order_washing',
                'site_url'      => 'order/order_washing',
                'pri_id'        => 1820,
                'child_actions' => [
                    1821 => '分配订单',
                ]
            ],
            [
                'title'         => '微信预定订单',
                'position'      => 'order_wx',
                'site_url'      => 'order/order_wx',
                'pri_id'        => 1830,
                'child_actions' => [
                    1831 => '分配订单',
                ]
            ],
            /*[
                'title'         => '微信服务订单',
                'position'      => 'order_wx_service',
                'site_url'      => 'order/order_wx_service',
                'pri_id'        => 1840,
                'child_actions' => [
                    1841 => '分配订单',
                ]
            ],*/
        ]
    ],

    /***************************大灶管理****************************/
    [
        'title'        => '大灶管理',
        'icon'         => 'menu-icon fa fa-fire',
        'is_first'     => true,
        'position'     => 'canteen_menu_max',
        'site_url'     => 'canteen/canteen_menu_max',
        'pri_id'       => 300,
        'other_active' => ['import_menu_max'],
        'child_list'   => [
            [
                'title'         => '大灶列表',
                'site_url'      => 'canteen/canteen_menu_max',
                'position'      => 'canteen_menu_max',
                'pri_id'        => 310,
                'child_actions' => [
                    311 => '编辑',
                    312 => '删除',
                    313 => '复制本天菜谱',
                    314 => '复制本周菜谱',
                    315 => '导入本天菜谱',
                    316 => '绑定菜单',
                ]
            ],

        ],
    ],

    /***************************小灶管理****************************/
    [
        'title'        => '小灶管理',
        'icon'         => 'menu-icon fa fa-fire',
        'is_first'     => false,
        'pri_id'       => 400,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => '小灶列表',
                'position'      => 'canteen_menu_min',
                'site_url'      => 'canteen_min/canteen_menu_min',
                'pri_id'        => 410,
                'child_actions' => [
                    411 => '编辑',
                    412 => '删除',
                    413 => '导入小灶',
                    414 => '绑定菜单',
                ]
            ],
            [
                'title'         => '导入小灶',
                'position'      => 'import_menu_min',
                'site_url'      => 'canteen_min/import_menu_min',
                'pri_id'        => 413,
                'child_actions' => [
                ]
            ],

        ],
    ],

    /***************************套餐管理****************************/
    [
        'title'        => '套餐管理',
        'icon'         => 'menu-icon fa fa-fire',
        'is_first'     => false,
        'pri_id'       => 500,
        'other_active' => ['import_one_pkg', 'import_pkg'],
        'child_list'   => [
            [
                'title'         => '套餐列表',
                'position'      => 'cateen_meal_packpage',
                'site_url'      => 'cateen_meal_packpage/cateen_meal_packpage',
                'pri_id'        => 510,
                'child_actions' => [
                    511 => '添加商品',
                    512 => '编辑',
                    513 => '删除',
                    514 => '导入菜',
                ]
            ],
            [
                'title'         => '每日套餐',
                'position'      => 'canteen_package',
                'site_url'      => 'cateen_meal_packpage/canteen_package',
                'pri_id'        => 520,
                'child_actions' => [
                    521 => '编辑',
                    522 => '删除',
                    523 => '复制本天套餐',
                    524 => '复制本周套餐',
                    525 => '导入本天套餐',
                    526 => '绑定菜单',
                ]
            ],

        ],
    ],

    /***************************预定管理****************************/
    [
        'title'        => '预定管理',
        'icon'         => 'menu-icon fa fa-fire',
        'is_first'     => true,
        'position'     => 'canteen_menu_book_new',
        'site_url'     => 'canteen_book/canteen_menu_book_new',
        'pri_id'       => 600,
        'other_active' => ['import_menu_book_new'],
        'child_list'   => [
            [
                'title'         => '预定列表',
                'site_url'      => 'canteen_book/canteen_menu_book_new',
                'position'      => 'canteen_menu_book_new',
                'pri_id'        => 610,
                'child_actions' => [
                    611 => '编辑',
                    612 => '删除',
                    613 => '复制本天菜谱',
                    614 => '复制本周菜谱',
                    615 => '导入本天菜谱',
                    616 => '绑定菜单',
                ]
            ],
        ],
    ],

    /***************************周边管理****************************/
    [
        'title'        => '周边管理',
        'icon'         => 'menu-icon fa fa-fire',
        'is_first'     => false,
        'pri_id'       => 700,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => '周边列表',
                'position'      => 'canteen_menu_around',
                'site_url'      => 'canteen_around/canteen_menu_around',
                'pri_id'        => 710,
                'child_actions' => [
                    711 => '编辑',
                    712 => '删除',
                    713 => '导入周边',
                    714 => '绑定菜单',
                ]
            ],
            [
                'title'         => '导入周边商品',
                'position'      => 'import_menu_around',
                'site_url'      => 'canteen_around/import_menu_around',
                'pri_id'        => 713,
                'child_actions' => [
                ]
            ],
        ],
    ],

    /***************************茶糕管理****************************/
    [
        'title'        => '茶糕管理',
        'icon'         => 'menu-icon fa fa-fire',
        'is_first'     => false,
        'pri_id'       => 800,
        'other_active' => ['import_cake_menu'],
        'child_list'   => [
            [
                'title'         => '茶糕列表',
                'position'      => 'tea_cake',
                'site_url'      => 'tea_cake/tea_cake',
                'pri_id'        => 810,
                'child_actions' => [
                    811 => '添加商品',
                    812 => '编辑',
                    813 => '删除',
                    /*814 => '导入菜',*/
                ]
            ],
            [
                'title'         => '当日茶糕',
                'position'      => 'tea_cake_menu',
                'site_url'      => 'tea_cake/tea_cake_menu',
                'pri_id'        => 820,
                'child_actions' => [
                    821 => '编辑',
                    822 => '删除',
                    823 => '复制本天套餐',
                    824 => '复制本周套餐',
                    825 => '导入本天套餐',
                    826 => '绑定菜单',
                ]
            ],

        ],
    ],

    /***************************账单管理****************************/
    [
        'title'        => '账单管理',
        'icon'         => 'menu-icon fa fa-usd',
        'is_first'     => false,
        'pri_id'       => 900,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => '总账单',
                'position'      => 'order_canteen_bill',
                'site_url'      => 'order/order_canteen_bill',
                'pri_id'        => 910,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '总账单统计',
                'position'      => 'order_canteen_bill_count',
                'site_url'      => 'order/order_canteen_bill_count',
                'pri_id'        => 920,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '当日订单',
                'position'      => 'canteen_bill',
                'site_url'      => 'order/canteen_bill',
                'pri_id'        => 990,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '洗车账单',
                'position'      => 'order_washing_bill',
                'site_url'      => 'order/order_washing_bill',
                'pri_id'        => 930,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '洗车账单统计',
                'position'      => 'order_washing_bill_count',
                'site_url'      => 'order/order_washing_bill_count',
                'pri_id'        => 940,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '滴滴账单',
                'position'      => 'order_ddcar_bill',
                'site_url'      => 'order/order_ddcar_bill',
                'pri_id'        => 950,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '滴滴账单统计',
                'position'      => 'order_ddcar_bill_count',
                'site_url'      => 'order/order_ddcar_bill_count',
                'pri_id'        => 960,
                'child_actions' => [
                ]
            ],
            [
                'title'         => 'App线上消费报表',
                'position'      => 'bill_record_report',
                'site_url'      => 'order/bill_record_report',
                'pri_id'        => 970,
                'child_actions' => [
                ]
            ],
            /*[
                'title'         => '线下老饭卡支付',
                'position'      => 'offline_card_bill_count',
                'site_url'      => 'order/offline_card_bill_count',
                'pri_id'        => 980,
                'child_actions' => [
                ]
            ],*/
            // 已经990了
        ],
    ],
    /***************************退款管理****************************/
    [
        'title'        => '退款管理',
        'icon'         => 'menu-icon fa fa-reply',
        'is_first'     => false,
        'pri_id'       => 1100,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => 'APP订单退款',
                'position'      => 'pay_refund',
                'site_url'      => 'pay_refund/pay_refund',
                'pri_id'        => 1110,
                'child_actions' => [
                ]
            ],
        ],
    ],

    /***************************菜谱管理****************************/
    [
        'title'        => '菜谱管理',
        'icon'         => 'menu-icon fa fa-list',
        'is_first'     => false,
        'pri_id'       => 1200,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => '菜谱列表',
                'position'      => 'canteen_meal',
                'site_url'      => 'menu/canteen_meal',
                'pri_id'        => 1210,
                'child_actions' => [
                    1211 => '添加菜系',
                    1212 => '编辑菜系',
                    1213 => '删除菜系',
                ]
            ],
            [
                'title'         => '菜谱分类',
                'position'      => 'canteen_meal_type',
                'site_url'      => 'menu/canteen_meal_type',
                'pri_id'        => 1220,
                'child_actions' => [
                    1221 => '添加菜系',
                    1222 => '编辑菜系',
                    1223 => '删除菜系',
                ]
            ],
        ],
    ],

    /***************************院方管理****************************/
    [
        'title'        => '院方管理',
        'icon'         => 'menu-icon fa fa-pencil-square-o',
        'is_first'     => false,
        'pri_id'       => 1300,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => '新闻列表',
                'position'      => 'hospital_news',
                'site_url'      => 'hospitals/hospital_news',
                'pri_id'        => 1310,
                'child_actions' => [
                    1311 => '添加新闻',
                    1312 => '编辑新闻',
                    1313 => '删除新闻',
                    1314 => '发布新闻',
                ]
            ],
            [
                'title'         => '医护考勤详情记录',
                'position'      => 'checking',
                'site_url'      => 'hospitals/checking',
                'pri_id'        => 1320,
                'child_actions' => [
                    1321 => '设置考勤是否有效',
                ]
            ],
            [
                'title'         => '医护考勤详情统计',
                'position'      => 'checking_count',
                'site_url'      => 'hospitals/checking_count',
                'pri_id'        => 1330,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '后勤考勤详情记录',
                'position'      => 'checking_ground',
                'site_url'      => 'hospitals/checking_ground',
                'pri_id'        => 1340,
                'child_actions' => [
                    1341 => '设置考勤是否有效'
                ]
            ],
            [
                'title'         => '后勤考勤详情统计',
                'position'      => 'checking_ground_count',
                'site_url'      => 'hospitals/checking_ground_count',
                'pri_id'        => 1350,
                'child_actions' => [

                ]
            ],
            [
                'title'         => '月份设置',
                'position'      => 'month_setting',
                'site_url'      => 'hospitals/month_setting',
                'pri_id'        => 1360,
                'child_actions' => [
                    1361 => '添加月份',
                    1362 => '编辑月份',
                    1363 => '删除月份',
                ]
            ],
            [
                'title'         => '院方用户',
                'position'      => 'user_main',
                'site_url'      => 'hospitals/user_main',
                'pri_id'        => 1370,
                'child_actions' => [
                    1371 => '添加用户',
                    1372 => '编辑用户',
                ]
            ],
            [
                'title'         => '院方用户审核',
                'position'      => 'user_main_entry',
                'site_url'      => 'hospitals/user_main_entry',
                'pri_id'        => 1380,
                'child_actions' => [
                    1381 => '审核用户',
                    1382 => '编辑用户',
                ]
            ],
        ],
    ],


    /***************************微信管理****************************/
    [
        'title'        => '微信管理',
        'icon'         => 'menu-icon fa fa-weixin',
        'is_first'     => false,
        'pri_id'       => 1900,
        'other_active' => [''],
        'child_list'   => [
            [
                'title'         => '预定列表',
                'position'      => 'wechat_book',
                'site_url'      => 'wechat/wechat_book',
                'pri_id'        => 1910,
                'child_actions' => [
                    1911 => '添加',
                    1912 => '编辑',
                    1913 => '删除',
                ]
            ],
            [
                'title'         => '微信服务',
                'position'      => 'wechat_service',
                'site_url'      => 'wechat/wechat_service',
                'pri_id'        => 1920,
                'child_actions' => [
                    1921 => '添加',
                    1922 => '编辑',
                    1923 => '删除',
                ]
            ]
        ],
    ],


    /***************************epay管理****************************/
    [
        'title'        => 'Epay支付系统',
        'icon'         => 'menu-icon fa fa-database',
        'is_first'     => false,
        'pri_id'       => 1500,
        'other_active' => ['e_epay_refund_list', 'e_epay_ground_refund'],
        'child_list'   => [
            [
                'title'         => '医家卡列表',
                'position'      => 'e_account',
                'site_url'      => 'epay/e_account',
                'pri_id'        => 1510,
                'child_actions' => [
                    1511 => '添加医家卡',
                    1512 => '冻结/解冻卡',
                    1513 => '绑定用户',
                    1514 => '换卡',
                    1515 => '刷新金额',
                    1516 => '用户信息同步',
                ]
            ],
            [
                'title'         => '初始化医家卡',
                'position'      => 'e_init_ecard',
                'site_url'      => 'epay/e_init_ecard',
                'pri_id'        => 1520,
                'child_actions' => [
                    1521 => '初始化医家卡',
                ]
            ],
            [
                'title'         => '医护卡退款',
                'position'      => 'e_epay_refund',
                'site_url'      => 'epay/e_epay_refund',
                'pri_id'        => 1540,
                'child_actions' => [
                    1541 => '退款',
                ]
            ],
            [
                'title'         => '后勤卡退款',
                'position'      => 'e_epay_ground_refund',
                'site_url'      => 'epay/e_epay_ground_refund',
                'pri_id'        => 1550,
                'child_actions' => [
                    1551 => '退款',
                ]
            ],
        ],
    ],

    /***************************epay充值管理****************************/
    [
        'title'        => 'Epay充值系统',
        'icon'         => 'menu-icon fa fa-money',
        'is_first'     => false,
        'pri_id'       => 1600,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => 'APP充值',
                'position'      => 'e_recharge_record_client',
                'site_url'      => 'epay_recharge/e_recharge_record_client',
                'pri_id'        => 1610,
                'child_actions' => [

                ]
            ],
            [
                'title'         => '医家卡院内充值',
                'position'      => 'e_recharge_record_welfare',
                'site_url'      => 'epay_recharge/e_recharge_record_welfare',
                'pri_id'        => 1620,
                'child_actions' => [
                    1621 => '院内充值',
                    1622 => '充值变更',
                    1623 => '单人院内充值',
                ]
            ],
            [
                'title'         => '院内批量导入充值',
                'position'      => 'e_recharge_import_welfare',
                'site_url'      => 'epay_recharge/e_recharge_import_welfare',
                'pri_id'        => 1630,
                'child_actions' => [
                    1631 => '院内批量导入充值',
                ]
            ],
            [
                'title'         => '医家卡线上充值',
                'position'      => 'e_recharge_record_online',
                'site_url'      => 'epay_recharge/e_recharge_record_online',
                'pri_id'        => 1640,
                'child_actions' => [
                    1641 => '线上充值',
                ]
            ],
            [
                'title'         => '医家卡现金充值',
                'position'      => 'e_recharge_record_cash',
                'site_url'      => 'epay_recharge/e_recharge_record_cash',
                'pri_id'        => 1650,
                'child_actions' => [
                    1651 => '充值',
                ]
            ],
        ],
    ],

    /***************************epay充值管理****************************/
    [
        'title'        => 'Epay报表管理',
        'icon'         => 'menu-icon fa fa-bar-chart',
        'is_first'     => false,
        'pri_id'       => 1700,
        'other_active' => [],
        'child_list'   => [
            [
                'title'         => '财务月报表',
                'position'      => 'e_month_report',
                'site_url'      => 'report/e_month_report',
                'pri_id'        => 1710,
                'child_actions' => [
                    1711 => '锁定账单',
                    1712 => '数据同步',
                ]
            ],
            [
                'title'         => '财务日报表',
                'position'      => 'e_daily_report',
                'site_url'      => 'report/e_daily_report',
                'pri_id'        => 1720,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '医家卡消费报表',
                'position'      => 'e_welfare_report',
                'site_url'      => 'report/e_welfare_report',
                'pri_id'        => 1730,
                'child_actions' => [

                ]
            ],
            [
                'title'         => '医家卡退款报表',
                'position'      => 'e_welfare_refund_report',
                'site_url'      => 'report/e_welfare_refund_report',
                'pri_id'        => 1740,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '医家卡线下消费',
                'position'      => 'e_bill_offline_record',
                'site_url'      => 'report/e_bill_offline_record',
                'pri_id'        => 1750,
                'child_actions' => [
                    1751 => '退款',
                ]
            ],
            [
                'title'         => '医家卡换卡管理',
                'position'      => 'e_exchange_record',
                'site_url'      => 'report/e_exchange_record',
                'pri_id'        => 1760,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '医家卡线下退款记录',
                'position'      => 'e_bill_offline_refund_record',
                'site_url'      => 'report/e_bill_offline_refund_record',
                'pri_id'        => 1770,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '医家卡绑定/解绑记录',
                'position'      => 'e_bind_record_log',
                'site_url'      => 'report/e_bind_record_log',
                'pri_id'        => 1780,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '医家卡线上消费',
                'position'      => 'e_bill_online_record',
                'site_url'      => 'report/e_bill_online_record',
                'pri_id'        => 1790,
                'child_actions' => [
                ]
            ],
            [
                'title'         => 'POS机当日交易',
                'position'      => 'e_pos_bill_offline_record',
                'site_url'      => 'report/e_pos_bill_offline_record',
                'pri_id'        => '1790-a',
                'child_actions' => [
                ]
            ],
            [
                'title'         => '消费返现',
                'position'      => 'e_regress_detail',
                'site_url'      => 'report/e_regress_detail',
                'pri_id'        => '1790-b',
                'child_actions' => [
                ]
            ],
        ],
    ],


    /***************************配置管理****************************/
    [
        'title'        => '配置管理',
        'icon'         => 'menu-icon fa fa-cog',
        'is_first'     => false,
        'pri_id'       => 1400,
        'other_active' => ['import_menu_nav'],
        'child_list'   => [
            [
                'title'         => 'APP菜单导航栏',
                'position'      => 'menu_nav',
                'site_url'      => 'system/menu_nav',
                'pri_id'        => 1410,
                'child_actions' => [
                    1411 => '添加导航',
                    1412 => '编辑导航',
                    1413 => '删除导航',
                    1414 => '绑定商品',
                ]
            ],
            [
                'title'         => '洗车设置',
                'position'      => 'washing_setting',
                'site_url'      => 'system/washing_setting/info',
                'pri_id'        => 1420,
                'child_actions' => [
                    //1421 => '洗车设置',
                ]
            ],
            [
                'title'         => 'APP配置',
                'position'      => 'hospital_config',
                'site_url'      => 'system/hospital_config/info',
                'pri_id'        => 1430,
                'child_actions' => [
                ]
            ],
            [
                'title'         => '微信配置',
                'position'      => 'hospital_wechat_config',
                'site_url'      => 'system/hospital_wechat_config/info',
                'pri_id'        => 1440,
                'child_actions' => [
                ]
            ],
        ],
    ],

    /***************************权限管理****************************/
    [
        'title'        => '权限系统',
        'icon'         => 'menu-icon fa fa-asterisk',
        'is_first'     => false,
        'pri_id'       => 200,
        'other_active' => [],   //这个是表示指定的URL为active状态
        'child_list'   => [
            [
                'title'         => '角色列表',
                'site_url'      => 'permission/role',
                'position'      => 'role',
                'pri_id'        => 210,
                'child_actions' => [
                    211 => '添加角色',
                    212 => '编辑角色',
                    213 => '删除角色',
                ]
            ],
            [
                'title'         => '团队列表',
                'site_url'      => 'permission/helper',
                'position'      => 'helper',
                'pri_id'        => 230,
                'child_actions' => [
                    231 => '重置密码',
                    232 => '编辑',
                ]
            ],
            [
                'title'         => 'MC后台人员列表',
                'site_url'      => 'permission/hospital_user',
                'position'      => 'hospital_user',
                'pri_id'        => 220,
                'child_actions' => [
                    221 => '添加人员',
                    222 => '编辑人员',
                    223 => '删除人员',
                    224 => '重置密码',
                ]
            ],

        ],
    ],


    // 最大已经到1900了，以后添加pri_id一定要记的是否已经存在
];

